import request from '@/utils/request'

// 查询消息阅读状态列表
export function listMessage_receive(query) {
  return request({
    url: '/ido/message_receive/list',
    method: 'get',
    params: query
  })
}

// 查询消息阅读状态详细
export function getMessage_receive(id) {
  return request({
    url: '/ido/message_receive/' + id,
    method: 'get'
  })
}

// 新增消息阅读状态
export function addMessage_receive(data) {
  return request({
    url: '/ido/message_receive',
    method: 'post',
    data: data
  })
}

// 修改消息阅读状态
export function updateMessage_receive(data) {
  return request({
    url: '/ido/message_receive',
    method: 'put',
    data: data
  })
}

// 删除消息阅读状态
export function delMessage_receive(id) {
  return request({
    url: '/ido/message_receive/' + id,
    method: 'delete'
  })
}

// 导出消息阅读状态
export function exportMessage_receive(query) {
  return request({
    url: '/ido/message_receive/export',
    method: 'get',
    params: query
  })
}

// 发布消息
export function sendMessage(data, id){
  return request({
    url: 'ido/app/message/send/' + id,
    method: 'post',
    data: data
  })
}

// 按照消息ID撤回消息
export function withdrawMessage(id) {
  return request({
    url: 'ido/app/message/remove/' + id,
    method: 'delete'
  })
}
